package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogPoemMapper;
import com.aurora.blog.domain.BlogPoem;
import com.aurora.blog.service.IBlogPoemService;

/**
 * 诗句Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-27
 */
@Service
public class BlogPoemServiceImpl implements IBlogPoemService 
{
    @Autowired
    private BlogPoemMapper blogPoemMapper;

    /**
     * 查询诗句
     * 
     * @param id 诗句主键
     * @return 诗句
     */
    @Override
    public BlogPoem selectBlogPoemById(Long id)
    {
        return blogPoemMapper.selectBlogPoemById(id);
    }

    /**
     * 查询诗句列表
     * 
     * @param blogPoem 诗句
     * @return 诗句
     */
    @Override
    public List<BlogPoem> selectBlogPoemList(BlogPoem blogPoem)
    {
        return blogPoemMapper.selectBlogPoemList(blogPoem);
    }

    /**
     * 新增诗句
     * 
     * @param blogPoem 诗句
     * @return 结果
     */
    @Override
    public int insertBlogPoem(BlogPoem blogPoem)
    {
        return blogPoemMapper.insertBlogPoem(blogPoem);
    }

    /**
     * 修改诗句
     * 
     * @param blogPoem 诗句
     * @return 结果
     */
    @Override
    public int updateBlogPoem(BlogPoem blogPoem)
    {
        return blogPoemMapper.updateBlogPoem(blogPoem);
    }

    /**
     * 批量删除诗句
     * 
     * @param ids 需要删除的诗句主键
     * @return 结果
     */
    @Override
    public int deleteBlogPoemByIds(Long[] ids)
    {
        return blogPoemMapper.deleteBlogPoemByIds(ids);
    }

    /**
     * 删除诗句信息
     * 
     * @param id 诗句主键
     * @return 结果
     */
    @Override
    public int deleteBlogPoemById(Long id)
    {
        return blogPoemMapper.deleteBlogPoemById(id);
    }
}
